package pri.zey.custom.AFMananger;/**
 * Created by Administrator on 2016/4/23 0023.
 */

import android.app.Application;
import android.content.Context;
import android.os.Handler;


/**
 * >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>类描述
 * >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>属性描述
 * >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>方法描述
 */
public class CustomApplication extends Application {

    // 共享变量
    private Handler handler = null;

    private Context appContext;

    // set方法
    public void setHandler(Handler handler) {
        this.handler = handler;
    }

    // get方法
    public Handler getHandler() {
        return handler;
    }
    public static ActivityControl control = new ActivityControl();

    @Override
    public void onCreate() {
        super.onCreate();
        appContext = this.getApplicationContext();
    }

    public Context getAppContext() {
        return appContext;
    }
}
